package cn.zhoabab.study.seata.storage.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "storage-service")
public interface StorageFeignApi {
    @PostMapping("/storage/reduce")
    ResponseEntity reduceStock(@RequestParam("code")String code, @RequestParam("num") Long num);
}
